/**
 * Created by mantoo on 2017/9/21.
 */
      var myChart = echarts.init(document.getElementById('main_demo'));
      var option = {
        title: {
            text: Page.title,
            subtext: '奇点数据收集',
            sublink: '/index'
        },
        tooltip : {
            trigger: 'axis',
            axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
            },
            formatter: function (params) {
                var tar = params[0];
                var tar_top = params[1];
                return tar.name + '<br/>' + tar.seriesName + ' : ' + tar.value + '<br>' + tar_top.seriesName + ' : ' + tar_top.value;
            }
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: {
            type : 'category',
            splitLine: {show:false},
            data : [ ]
        },
        yAxis: {
            type : 'value'
        },
        series: [
            {
                name: '最低工资',
                type: 'bar',
                stack:  '总量',
                itemStyle: {
                    normal: {
                        barBorderColor: 'rgba(0,0,0,0)',
                        color: 'rgba(0,0,0,0)'
                    },
                    emphasis: {
                        barBorderColor: 'rgba(0,0,0,0)',
                        color: 'rgba(0,0,0,0)'
                    }
                },
                data: []
            },
            {
                name: '最高工资',
                type: 'bar',
                stack: '总量',
                label: {
                    normal: {
                        show: true,
                        position: 'outside'
                    }
                },
                data:[]
            }
        ]
    };

      var i = 0;
      for (key in Message){
          option.xAxis.data[i]=key;
          option.series[0].data[i]=Message[key][0];
          option.series[1].data[i]=Message[key][1];
          i++;
        }


    myChart.setOption(option);






